package com.medical.logback.exception;

import com.medical.logback.response.ResultCode;

/**
 * @Auther:gzf
 * @Date : 2022/06/23
 */
public class GlobalException extends RuntimeException{

    private ResultCode resultCode;

    public GlobalException(ResultCode resultCode) {
        super(resultCode.toString());
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode() {
        return resultCode;
    }
}
